/**
 * Created by hjqi on 2016/8/27.
 */
var base = require('./mongodb');
var util = require('util');
var clusterMetaInfo_collection_name = require('../lib/config/config').config.mongodb.clusterMetaInfo_collection;

module.exports = ClusterMetaInfoDB;

function ClusterMetaInfoDB(){
    base.call(this,clusterMetaInfo_collection_name);
}

util.inherits(ClusterMetaInfoDB,base);

/*
schema of collection :clusterMetaInfo
db.clusterMetaInfo.findOne()

{
    "_id" : ObjectId("57c7e13d31ef463024f47989"),
    "clusterId" : "a4b7960ea7271ed2156543806c8ed4be",
    "masterId" : "a2c628265ffb82bf6cb4c0374e386438",
    "name" : "test321",
    "namespaces" : "hjqi6",
    "nodes" : {
    "a2c628265ffb82bf6cb4c0374e386438" : {
        "host" : "10.144.154.232",
            "status" : "disconnected"
    },
    "c8fe8c2b6af618502f7228d300067491" : {
        "host" : "10.144.25.201"
    },
    "o7764d5f7d9ae0b3f5ea6aab741bc293" : {
        "host" : "10.144.32.93"
    }
}
}*/
